package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 系统订单号生成表
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class SystemOrderNoDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统订单号ID
     */
        private Integer systemOrderNoId;
        /**
     * 经销商代码
     */
        private String dealerCode;
        /**
     * 订单号前缀
     */
        private String orderPrefix;
        /**
     * 年月
     */
        private String yyyyMm;
        /**
     * 序列号
     */
        private Integer orderSequence;
            private Boolean isDeleted;
    
    public SystemOrderNoDTO() {
        super();
    }




    public Integer getSystemOrderNoId() {
        return systemOrderNoId;
    }


    public void setSystemOrderNoId(Integer systemOrderNoId) {
        this.systemOrderNoId = systemOrderNoId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public String getOrderPrefix() {
        return orderPrefix;
    }


    public void setOrderPrefix(String orderPrefix) {
        this.orderPrefix = orderPrefix;
    }



    public String getYyyyMm() {
        return yyyyMm;
    }


    public void setYyyyMm(String yyyyMm) {
        this.yyyyMm = yyyyMm;
    }



    public Integer getOrderSequence() {
        return orderSequence;
    }


    public void setOrderSequence(Integer orderSequence) {
        this.orderSequence = orderSequence;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "SystemOrderNoDTO{" +
        "systemOrderNoId=" + systemOrderNoId +
        ", dealerCode=" + dealerCode +
        ", orderPrefix=" + orderPrefix +
        ", yyyyMm=" + yyyyMm +
        ", orderSequence=" + orderSequence +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "systemOrderNoId");
    }

}
